home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 58
/
MINAMI58.ISO
/
Varios
/
Juegos Flash
/
Gold Yard.exe
/
scripts
/
DefineSprite_324
/
frame_74
/
DoAction.as
Wrap
Text File
|
2003-04-29
|
714b
|
22 lines
_root.gameover = 1;
hero_status = "alive";
final_time = new Date();
final_date = final_time.getDate();
if(initial_date == final_date)
{
final_hours = final_time.getHours();
}
else
{
final_hours = final_time.getHours() + 24;
}
final_minutes = final_time.getMinutes();
final_seconds = final_time.getSeconds();
initial_total = initial_hours * 3600 + initial_minutes * 60 + initial_seconds;
final_total = final_hours * 3600 + final_minutes * 60 + final_seconds;
seconds_taken = final_total - initial_total;
total_minutes = Math.floor(seconds_taken / 60);
total_seconds = seconds_taken - total_minutes * 60;
_root.soundtrack_movie.gotoAndStop("off");
_root.congratulations.gotoAndPlay("on");